package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.LinkedHashSet;
import java.util.List;

public interface UserService {
    User findByUsername(String username);

    LinkedHashSet<Menu> getMenuListByUsername(String username);

    User findByTelephone(String telephone);

    void changPwd(String telephone, String password);

    String getAvatarByUsername(String username);

    void chgAvatarByUsername(String username, String avatar);

    PageResult findPage(QueryPageBean queryPageBean);

    List<String> findAllImg();

    void add(Integer[] roleIds, User user);

    User findByUserId(Integer id);

    void edit(Integer[] roleIds, User user);

    void delete(Integer id);

    List<Role> findRoleByUserId(Integer id);

    Result updateStation(Integer id, String station);
}
